package com.itheima.consumer.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring-cloud-parent
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-02 18:48
 **/
@Configuration
public class MyRule {
    @Bean
    public IRule rule() {
        return new RandomRule();
    }
}
